package net.oschina.git.wgch.springmvc.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by wgc on 2015/6/18.
 */

@Controller
@RequestMapping("/user")
public class UserController {

    private Logger logger = LoggerFactory.getLogger(UserController.class);

    public UserController() {
        logger.info("UserController is initialed.");
    }

    @RequestMapping("/register")
    public String register() {
        logger.info("register method is called.");
        return "user/register";
    }
}
